

<%@ page import="org.icress.fusion.admin.Profile" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'admin.profile.label', default: 'Profile')}" />
    <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
    
    <div class="body">
        <h1><g:message code="default.create.label" args="[entityName]" /></h1>
        <g:if test="${flash.message}">
        	<div class="message">${flash.message}</div>
        </g:if>
        <g:hasErrors bean="${profileInstance}">
        <div class="errors">
            <g:renderErrors bean="${profileInstance}" as="list" />
        </div>
        </g:hasErrors>
        <g:form action="save" >
            <div class="dialog">
            	<g:render template="/admin/profile/edit" model="[profileInstance:profileInstance]" />
            </div>
            <div class="buttons">
            	<shiro:hasPermission permission="profile:save">
                <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </shiro:hasPermission>
            </div>
        </g:form>
    </div>
</body>
</html>
